package com.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description:
 * @author: 陈程猿
 * @create: 2024-08-17 20:26
 **/

@SpringBootApplication(scanBasePackages = {"com.demo"})
@EnableTransactionManagement //事务
@EnableScheduling //定时任务
@EnableAsync //异步调用
@MapperScan(basePackages = {"com.demo.mappers"})
public class DemoApplication {
    private static Logger log = LoggerFactory.getLogger(DemoApplication.class);
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class,args);
        log.info("DemoApplication started");
    }
}
